This command can be executed only by a process that has
an effective user ID equal to the value of _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._cccc_uuuu_iiii_dddd
or _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._uuuu_iiii_dddd in the data structure associated with
_s_e_m_i_d or to a process that has the _ssss_uuuu_pppp_eeee_rrrr_----_uuuu_ssss_eeee_rrrr privilege.
_IIII_PPPP_CCCC______RRRR_MMMM_IIII_DDDD Remove the semaphore identifier specified by _s_e_m_i_d from
the system and destroy the set of semaphores and data
structure associated with it. This command can be
executed only by a process that has an effective user ID
equal to the value of _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._cccc_uuuu_iiii_dddd or _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._uuuu_iiii_dddd in
the data structure associated with _s_e_m_i_d or to a process
that has the _ssss_uuuu_pppp_eeee_rrrr_----_uuuu_ssss_eeee_rrrr privilege.
_ssss_eeee_mmmm_cccc_tttt_llll fails if one or more of the following are true:
_EEEE_AAAA_CCCC_CCCC_EEEE_SSSS Operation permission is denied to the calling process [see
_iiii_nnnn_tttt_rrrr_oooo(2)].
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL _s_e_m_i_d is not a valid semaphore identifier.
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL _s_e_m_n_u_m is less than 0 or greater than _ssss_eeee_mmmm______nnnn_ssss_eeee_mmmm_ssss.
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL _c_m_d is not a valid command.
_EEEE_IIII_NNNN_VVVV_AAAA_LLLL _c_m_d is _IIII_PPPP_CCCC______SSSS_EEEE_TTTT and _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._uuuu_iiii_dddd or _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._gggg_iiii_dddd is not
valid.
_EEEE_OOOO_VVVV_EEEE_RRRR_FFFF_LLLL_OOOO_WWWW _c_m_d is _IIII_PPPP_CCCC______SSSS_TTTT_AAAA_TTTT and _u_i_d or _g_i_d is too large to be stored
in the structure pointed to by _a_r_g._b_u_f.
_EEEE_RRRR_AAAA_NNNN_GGGG_EEEE _c_m_d is _SSSS_EEEE_TTTT_VVVV_AAAA_LLLL or _SSSS_EEEE_TTTT_AAAA_LLLL_LLLL and the value to which _ssss_eeee_mmmm_vvvv_aaaa_llll is
to be set is greater than the system imposed maximum.
_EEEE_PPPP_EEEE_RRRR_MMMM _c_m_d is equal to _IIII_PPPP_CCCC______RRRR_MMMM_IIII_DDDD or _IIII_PPPP_CCCC______SSSS_EEEE_TTTT and the effective user
ID of the calling process is not equal to the value of
_ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._cccc_uuuu_iiii_dddd or _ssss_eeee_mmmm______pppp_eeee_rrrr_mmmm_...._uuuu_iiii_dddd in the data structure
associated with _s_e_m_i_d and the calling process does not
have _ssss_uuuu_pppp_eeee_rrrr_----_uuuu_ssss_eeee_rrrr privilege.
_EEEE_FFFF_AAAA_UUUU_LLLL_TTTT _a_r_g_...._bbbb_uuuu_ffff points to an illegal address.